function [vector matrix] = im2fft(image)

image_double = double(image/256);
image_after_transform = abs(fft2(image_double));
image_after_transform = image_after_transform(1:20, 1:20);
matrix = uint8(image_after_transform);
vector = image_after_transform(:);        
vector = vector(2:end); 
